package com.hibernate.hrm.entity.dto.position;

import lombok.Data;
import org.springframework.data.domain.Pageable;

@Data
public class PositionQueryDTO {
    private Integer departmentId;
    private String positionName;
    private String positionCode;
    private Pageable pageable;

    public boolean hasDepartmentFilter() {
        return departmentId != null && departmentId > 0;
    }

    public boolean hasNameFilter() {
        return positionName != null && !positionName.isEmpty();
    }

    public boolean hasCodeFilter() {
        return positionCode != null && !positionCode.isEmpty();
    }
}
